<?php
use common\service\StaticService;
use backend\assets\AdminAsset;
use common\service\GlobalUrlService;
StaticService::includeAppJsStatic(GlobalUrlService::buildStaticUrl('/backend/user/info.js'),AdminAsset::class);

?>
<div class="layui-card">
    <div class="layui-card-header">用户详情</div>
    <div class="layui-card-body">
        <form class="layui-form">
            <div class="layui-form-item">
                <label class="layui-form-label">用户id</label>
                <label class="layui-form-label"><?=$data['id'] ?></label>
                <input type="hidden" id="user_id" value="<?=$data['id'] ?>">
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">用户昵称</label>
                <label class="layui-form-label"><?=$data['nickname'] ?></label>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">头像</label>
                <label class="layui-form-label"><img style="height: 55px;width: 45px" src="<?php echo GlobalUrlService::buildCdnUrl($data['avatarurl'])?>"></label>
            </div>
            <label class="layui-form-label" >
                <h3>收货地址</h3>
            </label>
            <div class="layui-form-item">
                <table id="address" class="layui-hide" lay-filter="address"></table>
            </div>
            <label class="layui-form-label">
                <h3>下单记录</h3>
            </label>
            <div class="layui-form-item">
                <table id="order" class="layui-hide" lay-filter="order"></table>
            </div>
            <div class="layui-form-item">
                <a class="layui-btn layui-btn-primary" onclick="window.history.go(-1)">返回</a>
            </div>
        </form>
    </div>
</div>